package net.uhuijia.sys.syscode.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.uhuijia.sys.syscode.service.SysCodeService;
import net.uhuijia.vo.sys.code.CodeVo;


@RestController
@RequestMapping(value="/client/syscode")
public class SysCodeClientController{

	@Autowired
    private SysCodeService sysCodeService;
    
    @RequestMapping(value = "/getCodesByType")
   	public List<CodeVo> getCodesByType( String type )
   	{
       	return sysCodeService.getCodesByType(type);
   	}

}